#pragma once

#include "LayerBase.h"

class CLayerHomeDown : public CLayerBase {
public:
	CLayerHomeDown(void);
	virtual ~CLayerHomeDown(void);
	CREATE_FUNC(CLayerHomeDown);

	bool init() override;
	//virtual void onEnter() override;
	//virtual void onExit() override;
	//virtual void update(float delta) override;
private:
	void onOpenBody(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onOpenPack(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onGetTask(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onBattle(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
private:
	cocos2d::Node*				m_Down;
	cocos2d::Node*				m_ContainerPack;
	cocos2d::Node*				m_ContainerBody;
	cocos2d::Node*				m_Skill;
};

